package org.zoomdev.android.nfccard.cpu;


import org.zoomdev.android.nfc.adapters.ApduException;
import org.zoomdev.android.nfc.adapters.IsoDepTagAdapter;
import org.zoomdev.android.nfccard.NfcResult;

import java.io.IOException;

/**
 * Created by renxueliang on 2017/10/20.
 */

public interface CardReader {
    int getBalance(CpuCard card, IsoDepTagAdapter adapter) throws IOException, ApduException;

    public static class ChargeInfo {
        public String file05;
        public String file15;
        public String random;

    }


    String getCardId(CpuCard card, IsoDepTagAdapter adapter) throws IOException, ApduException;

    NfcResult getAll(CpuCard card, IsoDepTagAdapter adapter) throws IOException, ApduException;

    ChargeInfo getOtherRechargeInfo(CpuCard card, IsoDepTagAdapter adapter) throws IOException, ApduException;


}
